import pytest
from ..pages.page_login import LoginPage
from ..pages.page_logout import LogoutPage
from ..common.read_config import base_url

@pytest.fixture(scope="function",params=[("admin","123456")])
def login_action(request):
    (username,password) = request.param
    login_page = LoginPage(username,password)
    login_page.open_page(base_url)
    login_page.login()
    yield login_page.driver
    login_page.quit_driver()


